package com.itasura.builder.bike;

/**
 * @author sailor wang
 * @date 2020/6/30 7:28 PM
 * @description
 */
public class Director {
    private Builder builder = null;
    public Director(Builder builder){
        this.builder = builder;
    }

    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();;
        builder.buildTire();
        return builder.createBike();
    }
}